import {http} from '@/axios'

/**
 * @description 用户登录
 */
export function login(data) {
  return http.request(
    {
      url: '/user/login',
      method: 'POST',
      data,
    }
  )
}

/**
 * @description 用户注册
 */
export function register(data) {
  return http.request(
    {
      url: '/user/register',
      method: 'POST',
      data,
    }
  )
}

/**
 * @description 用户仪表板
 */
export function dashboard() {
  return http.request(
    {
      url: '/user/dashboard',
      method: 'GET',
    }
  )
}
